package com.belle.sfsdfasdfsdf.response;

public class ReturnObject {
	
	private Object Data;
	private int status;
	private String message;
	
	public static ReturnObject getDefaultSuccessReturn() {
		return new ReturnObject(null, ReturnStatus.SUCCESS,
				ReturnStatus.STATUS_MESSAGE_MAP.get(ReturnStatus.SUCCESS));
	}
	
	public static ReturnObject getDefaultFailedReturn() {
		return new ReturnObject(null, ReturnStatus.FAILED,
				ReturnStatus.STATUS_MESSAGE_MAP.get(ReturnStatus.FAILED));
	}
	
	public static ReturnObject getParamErrorReturn() {
		return new ReturnObject(null, ReturnStatus.PARAM_ERROR,
				ReturnStatus.STATUS_MESSAGE_MAP.get(ReturnStatus.PARAM_ERROR));
	}
	
	public ReturnObject() {
	
	}
	
	public ReturnObject(Object data, int status, String msg) {
		this.Data = data;
		this.status = status;
		this.message = msg;
	}
	
	public Object getData() {
		return Data;
	}
	
	public void setData(Object data) {
		Data = data;
	}
	
	
	public String getMessage() {
		return message;
	}
	
	public void setMessage(String message) {
		this.message = message;
	}
}
